
<%inherit file="/base/index.html" />
<%def name="study()">
<fieldset><legend>Study</legend>
<label for="title">Title</label><br />
${h.text(name="title", id="title")}<br />

</fieldset><br />
        % for id in range(c.number_of_people):
            ${person(id=id)}
        % endfor
</%def>


<%def name="person(id)">
    <fieldset><legend>Person</legend>
        <label for="person-${id}.title">Surname</label><br />
        ${h.text(name="person-%s.title"%(id), id="person-%s.title"%(id))}<br />
</fieldset><br />
</%def>



${h.form(h.url_for(controller='page', action='click'))}
${study()}
${h.submit(name="action", value="Save")}
${h.submit(name="action", value="Add New Person")}
${h.end_form()}
